package wnhz.com.business.groupshop.ui;

import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.EditText;
import android.widget.TextView;

import com.suke.widget.SwitchButton;

import butterknife.BindView;
import butterknife.ButterKnife;
import wnhz.com.business.R;
import wnhz.com.business.base.BaseActivity;
import wnhz.com.business.impl.ActionBarClickListener;
import wnhz.com.business.view.TranslucentActionBar;

/**
 * 商品发布
 */
public class ShangPinSeadAvtivity extends BaseActivity implements ActionBarClickListener {

    @BindView(R.id.actionbar)
    TranslucentActionBar actionbar;
    @BindView(R.id.et_name)
    EditText etName;
    @BindView(R.id.et_jianjie)
    EditText etJianjie;
    @BindView(R.id.tv_leixing)
    TextView tvLeixing;
    @BindView(R.id.sw_remind)
    SwitchButton swRemind;
    @BindView(R.id.tv_peoplenum)
    TextView tvPeoplenum;
    @BindView(R.id.et_originalprice)
    EditText etOriginalprice;
    @BindView(R.id.et_groupprice)
    EditText etGroupprice;
    @BindView(R.id.et_monoprice)
    EditText etMonoprice;
    @BindView(R.id.et_stock)
    EditText etStock;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shang_pin_sead_avtivity);
        ButterKnife.bind(this);

        actionbar.setData("商品发布", R.drawable.ic_lefft_white, null, 0, "保存/下一步", 0, this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            actionbar.setStatusBarHeight(getStatusBarHeight());
        }
    }

    public static Intent createIntent(Context context) {
        Intent intent = new Intent(context, ShangPinSeadAvtivity.class);
        return intent;
    }

    @Override
    public void onLeftClick() {
        finish();
    }

    @Override
    public void onRightClick() {
        startActivity(ChooseSKUActivity.createIntent(this));
    }

    @Override
    public void onEditTextClick() {

    }
}
